package com.dobbinsoft.iotechn.apigw.enums;

/**
 * @author : rize
 * @description : WS消息CODE
 * @time : 2020/6/17
 */
public enum WebsocketMessageType {

    DEVICE_SELECT(1, "设备选中"),
    DATA_CHANGE(2,"数据点更新"),
    // 当前时刻所有数据点
    DATA_SNAPSHOOT(3, "数据点快照")
    ;

    WebsocketMessageType(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private int code;

    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
